/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-02 20:44:00
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-02 21:00:57
 */
 import java.util.Scanner;
 
 public class Test10 {
     public static void main(String[] args) {
         Scanner scanner = new Scanner(System.in);
          int a = scanner.nextInt();
         int add=0;
         for(int i=1;i<=a-1;i++)
         {
             if(a%i==0)
                 add+=i;//add=add+i;
         }
         if(add==a)
             System.out.printf("%d 是完全数", a);
         else 
         System.out.printf("%d 是非完全数", a);
     }
    }
 
 
 